import 'package:flutter/cupertino.dart';
import 'package:flutter_base_plugin/base_library/base/base_function.dart';
import 'package:flutter_base_plugin_example/models/category_model.dart';
import 'package:flutter_base_plugin_example/net/http_urls.dart';

class CategoryViewModel extends BaseListViewModel<CategoryModel> {
  int selectIndex = 0;

  int select = 0;

  setSelectIndex(index) {
    selectIndex = index;
    select = dataList[index].id!;
    notifyListeners();
  }

  @override
  String getTag() {
    // TODO: implement getTag
    return "CategoryViewModel";
  }

  @override
  Map<String, dynamic> getRequestParams() {
    // TODO: implement getRequestParams
    return {};
  }

  @override
  String getUrl() {
    // TODO: implement getUrl
    return HttpUrls.categoryList;
  }
}
